import { HTTP } from "../utils/http";
import { ClassicLatestProp } from "../props/classic";
/**
 * 期刊处理类
 */
export class ClassicModel extends HTTP {
  /**
   * 获取最新数据
   * @param callback 
   */
  getLatest(callback?: { (res: ClassicLatestProp): void; }) {
    this.request({
      url: "classic/latest",
      success(res) {
        if (callback) {
          callback(res.data as ClassicLatestProp)
        }
      }
    })
  }
}